#!/bin/bash
base_url="https://gitee.com/vangelisx/hs_shell/raw/main"  # 写死的基准 URL
# 检查操作系统类型
if [[ "$OSTYPE" == "darwin"* ]]; then
    echo "当前运行环境是 macOS."
    curl -s "$base_url/src/use.sh" | bash

elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" ]]; then
    echo "当前运行环境是 Windows."
    curl -s "$base_url/win/use.sh" | bash
else
    echo "当前运行环境未知或不支持."
    exit 1
fi
